<?php
/**
 * Interface for DAO
 * 
 * @author Mitchelle Pascual <mitch.pascual@gmail.com>
 * $date 04/01/2010
 *
 */
interface Owg_Model_IDAO
{
	/** singleton instance **/
	public static function getInstance();
	public function save(Owg_Model_BaseModel $p_oModel);
	public function delete($p_iId);
	public function getById($p_iId);
	public function findList($p_iOffset = 0, $p_iLimit = 0, $p_sOrder = '', 
		$p_bAsc = true, $p_aWhere = array());
		
	/** table column mapping **/	
	public static function getRealColumnName($p_sColumn);
}